package com.itheima.b_servlet_anno_02;

import javax.servlet.*;
import javax.servlet.http.*;
import javax.servlet.annotation.*;
import java.io.IOException;

//@WebServlet(urlPatterns = {"/annoDemo01Servlet"})
//@WebServlet(urlPatterns = "/annoDemo01Servlet")
//@WebServlet(value = "/annoDemo01Servlet")
@WebServlet("/annoDemo01Servlet")
public class AnnoDemo01Servlet extends HttpServlet {
    @Override
    protected void doGet(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException {
        this.doPost(request, response);
//        System.out.println("get");
    }

    @Override
    protected void doPost(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException {
        System.out.println("servlet注解开发");
    }
}